home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 25 / AACD 25.iso / AACD / Magazine / Backups / FBackNG / dirdiver.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-08-30  |  2.5 KB  |  76 lines

  1. // Name:        dirdiver.h
  2.  
  3. // AmigaOS
  4. #include <exec/types.h>
  5. #include <exec/memory.h>
  6. #include <exec/lists.h>
  7. #include <exec/nodes.h>
  8. #include <dos/exall.h>
  9. #include <dos/datetime.h>
  10. #include <libraries/dos.h>
  11. #include <proto/exec.h>
  12. #include <proto/dos.h>
  13. #include <proto/xpkmaster.h> 
  14. // SAS/C
  15. #include <ctype.h>
  16. #include <stdio.h>
  17. #include <stdlib.h>
  18. #include <string.h>
  19. #include <dos.h>
  20. #include <time.h>
  21.  
  22. #ifndef FBACKNG_H
  23. #include "fbackng.h"
  24. #endif
  25.  
  26. // phases
  27. #define BACKUP_PHASE    1
  28. #define MIRROR_PHASE    5
  29.  
  30. // return codes
  31. #define DD_DELETED      -1      // no error, but indicate file was deleted
  32. #define DD_OK           0       // no error
  33. #define DD_LOCK         1       // error locking root
  34. #define DD_CALLOC       2       // error allocating memory
  35. #define DD_ALLOCDOS     3       // error allocating dosobject
  36. #define DD_OPENSOURCE   4       // error opening source for copy
  37. #define DD_OPENDEST     5       // error opening dest for copy
  38. #define DD_COPY         6       // error copying source to dest
  39. #define DD_OPENLOG      7       // error opening logfile
  40. #define DD_WRITELOG     8       // error writing to logfile
  41. #define DD_LOCKFILE     9       // error obtaining lock on file
  42. #define DD_EXFILE       10      // error obtaining info on file
  43. #define DD_DATEFILE     11      // error setting date on file
  44. #define DD_DELFILE      12      // error deleting a file
  45. #define DD_ARCHFILE     13      // error setting archive flag on file
  46. #define DD_COMMFILE     14      // error setting comment on file
  47. #define DD_PROTFILE     15      // error setting protect on file
  48. #define DD_SYSTFILE     16      // error setting system date on file
  49. #define DD_VOLERROR     17      // volume not found
  50. #define DD_DELFLAG      18      // error setting delete flag
  51. #define DD_DELDIRS      19      // deleted a directory
  52.  
  53. // externals
  54. extern struct Library *XpkBase;
  55.  
  56. // prototypes
  57. int __aligned __saveds DirDiver(char *root,int mode);
  58. int __aligned __saveds DirCleaner(char *root);
  59. void check_write_log(char *custom);
  60. int Check_File(char *name);
  61. int Check_Dir(char *name);
  62. int Copy_File(char *infile,char *outfile);
  63. int Clone_Dir(char *path);
  64. int Set_Archive_File(char *name);
  65. int Clone_Protect_File(char *name,char *uit);
  66. int Clone_DateStamp_File(char *name,char *uit);
  67. int System_DateStamp_File(char *name);
  68. int Clone_Comment_File(char *name,char *uit);
  69. int Delete_File(char *thefile);
  70. int Delete_Dir(char *thedir);
  71. int Pack_File(char *in,char *out,char *packer);
  72. int Compare_Date_File(char *filename,struct DateTime *datum,LONG *res);
  73. void WhichFlags(ULONG flg,char *res);
  74.  
  75. // end
  76.